<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:forEach var="t" items="${commentList}" varStatus="status">
		<div id="commentListterm${t.id}" class="commentListterm mdl-shadow--2dp">
			<div style="padding: 10px;background: #eee;">
				<a>${t.name}</a>
				<div style="position: relative;float: right;">
					<span><fmt:formatDate value="${t.createtime}" pattern="yyyy年MM月dd日 "/></span>~
					<a onclick="replycommen(${t.id},'回复：${t.name}',${t.rootid })" style="cursor:pointer;">回复</a>
				</div> 
			</div>
			<hr style='margin: 0px 0;border-top: 1px solid rgba(0,0,0,0.1);'>
			<div style="padding:20px 10px;">
				${t.content}
			</div>
			<hr style='margin: 0px 0;border-top: 1px solid rgba(0,0,0,0.1);'>
			<div style="padding: 10px;background: #eee;">
				<i style="float: left;font-size: 20px;padding-right: 5px;" class="material-icons">&#xE326;</i>
				<a>${t.os}</a>
				<div style="position: relative;float: right;">
					<i style="float: left;font-size: 20px;padding-right: 5px;" class="material-icons">&#xE894;</i>
					<a>${t.browser}</a>
				</div> 
			</div>
			<c:if test="${t.notes!=null}">
				<hr style='margin: 0px 0;border-top: 1px solid rgba(0,0,0,0.1);'>
				<div  id="childrencommentList${t.id}" style="padding: 10px;">
					<c:set var="commentList" value="${t.notes}" scope="request"/>
					<jsp:include page="commentListterm.jsp"/>
				</div>
			</c:if>
		</div>
</c:forEach>